// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   AntiPluginBtn.java

package com.tool.btn;

import java.awt.event.MouseEvent;
import org.come.Jpanel.AntiPluginJpanel;

// Referenced classes of package com.tool.btn:
//			MoBanBtn

public class AntiPluginBtn extends MoBanBtn
{

	private static final long serialVersionUID = 1L;
	private String selt;
	private AntiPluginJpanel jpanel;

	public AntiPluginBtn(String iconpath, int type, String selt, AntiPluginJpanel jpanel)
	{
		super(iconpath, type);
		this.jpanel = jpanel;
		this.selt = selt;
	}

	@Override
	public void chooseyes()
	{
	}

	@Override
	public void chooseno()
	{
	}

	@Override
	public void nochoose(MouseEvent e)
	{
		String value = jpanel.getValue();
		if (value != null && !"".equals(value)) {
			if (selt.equals(value)) {
				jpanel.correct();
			} else {
				jpanel.error();
			}
		}
	}
}
